package com.itjiange;

import org.apache.commons.collections4.CollectionUtils;

import java.util.List;

/**
 * 处理业务邮件
 *
 * @author ItJianGe
 * @data 2024/8/19 11:00
 */
public class CooperateEmailProcess extends AbstractProcess {

    @Override
    public int getEmailType() {
        return EmailTypeEnum.COOPERATE_EMAIL.getEmailType();
    }

    @Override
    public void execute(List<Email> emails) {
        if (!CollectionUtils.isEmpty(emails)) {
            System.out.println("------公司业务部，开始处理业务合作邮件------");
            emails.forEach(email -> System.out.println(email.getEmailDisplay()));
        }
    }
}
